home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Extensions.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  2.7 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Extensions
  2. Sent:        6/26/96 11:35 AM
  3. Received:    6/26/96 11:51 AM
  4. From:        The3Furies@aol.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Mark,
  9.  
  10. I have searched through both the ODFDraw & ODFCyberStarter projects and
  11. am unable to find any evidence of extension subclasses (I assume I'm
  12. not looking in the right places?)  I searched on the word extension
  13. and nothing in the project matched - just stuff for the semantic
  14. interface extension in the framework files.  I am essentially looking
  15. for a spcecific example of how to implement what is discussed in the
  16. Extensions Manager engineering note which tells what to do, but not
  17. when or where.
  18.  
  19. I would like to create a custom extension for my part so that a containing
  20. part can get data in & out of it among other functions.  I need to know:
  21.  
  22. * Where do I call RegisterExtensions()? in Part::Initialize() ?
  23. * I could use an example of a valid CreateExtensionFunc function
  24. * I would like to see an example of the source for an extension in ODF - is
  25. it
  26. the same as code for non-ODF parts - ie are the Text & Sound editiors good
  27. examples?
  28. * The Eng. note mentions calling IsValid in every method, but in the
  29.  Text & Sound editiors, it isn't called...  is this ODF specific?
  30.  
  31. Chris Colapietro
  32.  
  33. >Release 1 has extensions samples: ODFDraw publishes a subclass of the
  34. >scripting extension, and ODFCyberStarter publishes a subclass of the main
  35. >Cyberdog extension. In both these cases the part is acting as a server and
  36. >some other part is acquiring the extension and calling it. Calling an
  37. >extension is nothing special, since it's just a SOM object. You do have to
  38. >find a server part first, which may mean something like walking the OD
  39. >component hierarchy and calling HasExtension/GetExtension on each part.
  40. >
  41. >In Release 2 there will be more examples: Container and Bitmap act as
  42. >server and client for a new sample extension, and Bitmap also publishes the
  43. >Cyberdog extension (and also calls it itself).
  44. >
  45. >markl
  46.  
  47. >>At 9:04 AM 6/26/96, The3Furies@aol.com wrote:
  48. >>Are there any examples available of writing extensions in ODF, and/or of
  49. >>calling a parts extensions?  I have looked at the tech note, and at
  50. >>the Text & Sound editors on DR4 for implementation examples, but
  51. >>could use further help specific to ODF.  Also, I have not yet found any
  52. >>examples of calling extensions.
  53.  
  54. ========================================================================
  55. Chris Colapietro                               email: the3furies@aol.com
  56. President                     
  57. The 3 Furies Software, Inc.                        voice: (804) 698-6859
  58. ========================================================================
  59.